﻿function CasePredetermine(x, y) {

    //Position de la case
    this.X = x;
    this.Y = y;

    this.jeux = document.getElementById("jeux");
    this.etat = true;
    var img = document.createElement("img");
    img.src = "images/sols/sol_court.png";
    img.id = "fond_" + this.X + "_" + this.Y;
    img.style.width = "50px";
    img.style.height = "50px";
    img.style.position = "absolute";
    img.style.left = this.X + "px";
    img.style.top = this.Y + "px";
    img.alt = "";
    this.jeux.appendChild(img);

    this.draw = function () {

    }

    this.changeEtat = function () {

    }

    this.init = function (x, y) {
        this.X = x;
        this.Y = y;
    }

    this.init(this.X, this.Y);

}